home *** CD-ROM | disk | FTP | other *** search
- Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
- From: thay@uoguelph.ca (Toby K Hay)
- Newsgroups: comp.lang.c
- Subject: Re: Passing to C prog from Dos Prompt
- Date: 16 Apr 1996 22:12:04 GMT
- Organization: University of Guelph
- Message-ID: <4l15vk$rti@ccshst05.uoguelph.ca>
- References: <4l0qei$gj9@soap.news.pipex.net>
- NNTP-Posting-Host: ccshst01.uoguelph.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- ZXCV (unregistered@dial.pipex.com) wrote:
-
- : basically, I want to pass some parameters to a program from DOS
-
- Search your manual/help files for references to argv and argw.
- If you declare main as "int main(int argc, char *argv[])" you can access
- command line parameters by number in the list of paramters using argc and
- argv.
-
- Toby Hay thay@uoguelph.ca
-
-